package com.yzh.pethome.mapper;

import com.yzh.pethome.domain.PageList;
import com.yzh.pethome.domain.PageParams;
import com.yzh.pethome.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DeptMapper {

    @Select("select * from t_department")
    List<Dept> selectAllDept();

    void addDept(Dept dept);
    void deleteDept(Long id);
    void updateDept(Dept dept);
   @Select("select * from t_department where id=#{id}")
    Dept selectDeptById(Long id);

    Integer selectDeptCount();
    List<Dept> selectDeptByPage(PageParams pageParams);

}
